import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

/**
 * 机构管理
 */
const membership: AppRouteModule = {
  path: '/membership',
  name: 'Membership',
  component: LAYOUT,
  redirect: '/membership/orderList',
  meta: {
    orderNo: 12,
    icon: 'carbon:version',
    title: '订单管理',
  },
  children: [
    {
      path: 'orderList',
      name: 'OrderList',
      component: () => import('@/views/membership/orderList/index.vue'),
      meta: {
        title: '会费订单',
      },
    },
    {
      path: 'activityOrderList',
      name: 'activityOrderList',
      component: () => import('@/views/membership/activityOrderList/index.vue'),
      meta: {
        title: '活动订单',
      },
    },
    {
      path: 'orderDetail',
      name: 'OrderDetail',
      component: () => import('@/views/membership/orderDetail/index.vue'),
      meta: {
        title: '订单详情',
        hideMenu: true,
      },
    },
    {
      path: 'activityOrderDetail',
      name: 'activityOrderDetail',
      component: () => import('@/views/membership/activityOrderList/activityOrderDetail/index.vue'),
      meta: {
        title: '活动订单详情',
        hideMenu: true,
      },
    },
  ],
};

export default membership;
